<?php echo $this->Form->create('tags', array('action' => 'tags')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE DOCUMENTOS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                    <th>Numero</th>
                    <th>Descripcion 1</th>
                    <th>Descripcion 2</th>
                    <th>Tipo</th>
                    <th>Acciones</th> 
                </tr>
            </thead>
            <tbody>
                <?php $i = 1; ?>
                <?php foreach ($tags as $doc): ?>
                <tr class="gradeX">
                <td><?php echo $i; $i++; ?></td>
                <td><?php echo $doc['Tag']['descripcion1'];?></td>
                <td><?php echo $doc['Tag']['descripcion2'];?></td>   
                <td><?php echo $doc['Tag']['tipo_id'];?></td>                                 
                <td><?php echo $this->Html->link('EDITAR',array('action'=>'editar',$doc['Tag']['id']));?>                                      
                <?php echo $this->Html->link('ELIMINAR',array('action'=>'eliminar',$doc['Tag']['id']),null,('Desea aliminar este Documento.....!!!!!?')); ?></td>
                </tr>
                <?php endforeach; ?>                
            </tbody>
        </table>
    </div> 
</div> 
<?php echo $this->Html->link('INSERTAR NUEVO TAGS',array('action'=>'insertar'),array('class'=>'buttonS bGreen'));?>
